<?php
class ListAction extends CAction
{
	public function run()
	{
		$city_id = 1;//Yii::app()->request->getParam('city')
		
		$homes = new Home;
		$homes->attributes = Yii::app()->request->getParam('Home', array('city_id'=>$city_id)); 
		
		$pages;
		
		$dataProvider = $homes->search($pages);
		
		$this->controller->renderPartial('list',array(
			'dataProvider' => $dataProvider,
		));
	}
}